/**
 * Copyright (C) 2013-2015
 *
 * @file   on_property_get.c
 *
 * @remark
 *
 */

#include "on_property_get.h"
#include "iid.h"
#include "S_1_DeviceInformation_doGet.h"
#include "S_2_Lock_doGet.h"

void on_property_get(property_operation_t *o)
{
    MI_LOG_INFO("[on_property_get]siid %d, piid %d\n", o->siid, o->piid);
    
    switch (o->siid)
    {
        case IID_1_DeviceInformation:
            S_1_DeviceInformation_doGet(o);
            break;

        case IID_2_Lock:
            S_2_Lock_doGet(o);
            break;
        
        default:
            o->code = OPERATION_INVALID;
            break;
    }
}
